﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace aboutcar
{
    class Program
    {
        static void Main(string[] args)
        {
            car a = new car();
            garage b = new garage();
            Console.WriteLine("车的名字");
            a.name = Console.ReadLine();
            Console.WriteLine("车的颜色");
            a.color = Console.ReadLine();
            Console.WriteLine("车的轮子数");
            a.riage = int.Parse(Console.ReadLine());
            {
                if (a.riage >= 4)
                {
                    a.canuse();
                }
                else
                {
                    Console.WriteLine("请送去汽车厂返修,本汽车的维修厂具体信息如下");

                    b.message();
                    b.repair();
                }
            }
            }

        }
    }
